﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using FrbaHotel.ClasesDb;
using System.Windows.Forms.PropertyGridInternal;


namespace FrbaHotel.ABM_de_Cliente
{
    public partial class ListMod : Form
    {
        public ListMod()
        {
            InitializeComponent();
        }

        private void ListMod_Load(object sender, EventArgs e)
        {

        }




        private void btnBuscar_Click(object sender, EventArgs e)
        {
            gridCli.DataSource = ClienteDb.ObtenerClientes();
        }

        //Seleccionar incompleto
        private void BtnSel_Click(object sender, DataGridViewCellEventArgs e)
        {
            if (gridCli.CurrentCell.ColumnIndex == 0)
            {
                txtApellido.Text = Convert.ToString(gridCli.CurrentRow.Cells[5].Value);

                new ModificarCliente();
            }
            
            
        }

        //Seleccionar mail usando un CellContentClick
        /*private void gridCli_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            txtEmail.Text = Convert.ToString(gridCli.CurrentRow.Cells["Mail"].Value);
        }*/




 





    }

}


      

